package com.nuoniu.sibanyun.controller.erp.barcode;


import com.nuoniu.sibanyun.common.result.HttpResult;
import com.nuoniu.sibanyun.entity.dto.WorkProcedureReportDto;
import com.nuoniu.sibanyun.entity.erp.barcode.ErpBarcodePrint;
import com.nuoniu.sibanyun.entity.vo.WorkProcedureReportResult;
import com.nuoniu.sibanyun.service.erp.barcode.IErpBarcodeProcessReportService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import com.nuoniu.sibanyun.common.BaseController;

/**
 * <p>
 * 条码工序汇报记录 前端控制器
 * </p>
 *
 * @author 白强
 * @since 2021-11-27
 */
@RestController
@RequestMapping("/erp/barcode/processReport")
@Api(tags = "条码工序汇报记录")
public class ErpBarcodeProcessReportController extends BaseController {


    @Autowired
    private IErpBarcodeProcessReportService barcodeProcessReportService;



    @PostMapping("batchSaveCardDetail")
    @ApiOperation("批量条码工序汇报")
    public HttpResult<WorkProcedureReportResult> generateBarcode(@RequestBody WorkProcedureReportDto workProcedureReportDto){
        return HttpResult.ok(barcodeProcessReportService.batchSaveCardDetail(workProcedureReportDto));
    }

}
